<?php
/**
 * Dependency abstract exporter
 *
 * PHP version 5
 *
 * @category  W
 * @package   Services
 * @author    Olivier Hoareau <olivier@phppro.fr>
 * @copyright 2009 PHPPRO http://www.phppro.fr
 * @license   http://dev.phppro.fr/license PHPPRO
 * @version   SVN: $Id:$
 * @link      http://dev.phppro.fr/projects/wdependency
 */
require_once 'W/W.php';
require_once 'W/Dependency/Exporter/Interface.php';
/**
 * Dependency abstract exporter
 *
 * @category  W
 * @package   Services
 * @author    Olivier Hoareau <olivier@phppro.fr>
 * @copyright 2009 PHPPRO http://www.phppro.fr
 * @license   http://dev.phppro.fr/license PHPPRO
 * @version   SVN: $Id$
 * @link      http://dev.phppro.fr/projects/wdependency
 */
abstract class W_Dependency_Exporter_Abstract implements W_Dependency_Exporter_Interface
{
    private $key;

    /**
     * Constructs a new listener
     *
     * @return W_Dependency_Exporter_Interface
     */
    public function __construct ()
    {
        $this->key = null;
    }
    public function configure($options=null)
    {
        if (true === isset($options['key'])) {
            $this->key = $options['key'];
        }
        return $this;
    }
    public function getKey()
    {
        return $this->key;
    }
    public function setKey($key)
    {
        $this->key = $key;
        return $this;
    }
    public function __toString()
    {
        return get_class($this);
    }
}